class SitesController < ApplicationController
  # GET /sites/1
  # GET /sites/1.xml
  def show
    @site = Site.get

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @site }
    end
  end

  # GET /sites/1/edit
  def edit
    @site = Site.get
  end

  # PUT /sites/1
  # PUT /sites/1.xml
  def update
    @site = Site.get

    respond_to do |format|
      if @site.update_attributes(params[:site])
        flash[:notice] = 'Site was successfully updated.'
        format.html { redirect_to(@site) }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @site.errors, :status => :unprocessable_entity }
      end
    end
  end
end
